package cn.appsys.service;

import cn.appsys.pojo.AppInfo;
import cn.appsys.tools.PageSupport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppInfoService {
   //添加
    boolean saveAppInfo(AppInfo appInfo);

    //根据APK名字查询信息
    AppInfo getByAPKName(String APKName);

    //根据条件查询所有软件信息
    List<AppInfo> getAllAppInfoByMsg(PageSupport ps,String swName, Integer status, Integer flatformId, Integer pid1, Integer pid2, Integer pid3);


    public boolean modify(AppInfo appInfo)throws Exception;

    public AppInfo getAppInfo(Integer id, String APKName)throws Exception;

    public boolean deleteAppLogo(Integer id)throws Exception;

    //根据apk名字和id查询appinfo信息
    public AppInfo getAppInfo(Integer id)throws Exception;

 //根据id删除信息
    public boolean deleteAppInfoById(Integer delId)throws Exception;

//更新app状态，上下架
    public boolean appsysUpdateSaleStatusByAppId(AppInfo appInfo) throws Exception;

}
